<?phpuse Illuminate\Database\Capsule\Manager as DB;/** * @name 表单组件 */class EventcomponentController extends ACommonController{    public function init()    {        $this->table      = 'event_component';        $this->primaryKey = 'id';        parent::init();    }    public function getAction($returnData=false)    {        $this->condition = ['material_id'=> $this->get('material_id')];        parent::getAction();    }    public function addAction()    {        $this->_view->assign('material_id', $this->get('material_id'));        parent::addAction();    }}